package com.klun.aop.JDKProxy;

import com.klun.aop.speak.Speakable;

/**
 *
 */
public class PersonImpl implements Speakable {

    @Override
    public void sayHi() {
        try {
            Thread.currentThread().sleep(30);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        System.out.println("PersonImpl：******* Hi!!");
    }

    @Override
    public void sayBye() {
        try {
            Thread.currentThread().sleep(10);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        System.out.println("PersonImpl：******* Bye!!");
    }
}
